package com.pretty.test.controller.pets.baike.wrapper;

import com.pretty.test.controller.pets.baike.vo.BaikeDashboardSimpleListVO;
import com.pretty.test.controller.pets.blog.vo.BlogPageVO;
import com.pretty.test.controller.pets.blog.wrapper.BlogPageWrapper;
import com.pretty.test.entity.PetsBaike;
import com.pretty.test.entity.PetsBlog;
import com.pretty.test.utils.otherutils.BeanUtil;
import com.pretty.test.utils.wrapper.BaseEntityWrapper;

import java.util.Objects;

public class BaikeDashboardSimpleListWrapper extends BaseEntityWrapper<PetsBaike , BaikeDashboardSimpleListVO> {
    public static BaikeDashboardSimpleListWrapper build(){
        return new BaikeDashboardSimpleListWrapper();
    }

    @Override
    public BaikeDashboardSimpleListVO entityVO(PetsBaike entity) {
        BaikeDashboardSimpleListVO vo = Objects.requireNonNull(BeanUtil.copy(entity, BaikeDashboardSimpleListVO.class));
        return vo;
    }
}
